﻿using Domain.Entitys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class HFConfiger : IEntityTypeConfiguration<HF>
    {
        public void Configure(EntityTypeBuilder<HF> builder)
        {
            builder.ToTable(nameof(HF));
            builder.HasKey(h => h.HufId);
            builder.Property(h => h.HumanId);
            builder.Property(h => h.FirstKindId);
            builder.Property(h => h.FirstKindName);
            builder.Property(h => h.SecondKindId);
            builder.Property(h => h.SecondKindName);
            builder.Property(h => h.ThirdKindId);
            builder.Property(h => h.ThirdKindName);
            builder.Property(h => h.HumanName);
            builder.Property(h => h.HumanAddress);
            builder.Property(h => h.HumanPostcode);
            builder.Property(h => h.HumanProDesignation);
            builder.Property(h => h.HumanMajorKindId);
            builder.Property(h => h.HumanMajorKindName);
            builder.Property(h => h.HumanMajorId);
            builder.Property(h => h.HumanMajorName);
            builder.Property(h => h.HumanTelephone);
            builder.Property(h => h.HumanMobilephone);
            builder.Property(h => h.HumanBank);
            builder.Property(h => h.HumanAccount);
            builder.Property(h => h.HumanQQ);
            builder.Property(h => h.HumanEmail);
            builder.Property(h => h.HumanHobby);
            builder.Property(h => h.HumanSpeciality);
            builder.Property(h => h.HumanSex);
            builder.Property(h => h.HumanReligion);
            builder.Property(h => h.HumanNationality);
            builder.Property(h => h.HumanRace);
            builder.Property(h => h.HumanBirthday);
            builder.Property(h => h.HumanBirthplace);
            builder.Property(h => h.HumanAge);
            builder.Property(h => h.HumanEducatedDegree);
            builder.Property(h => h.HumanEducatedYears);
            builder.Property(h => h.HumanEducatedMajor);
            builder.Property(h => h.HumanSocietySecurityId);
            builder.Property(h => h.HumanIdCard);
            builder.Property(h => h.Remark);
            builder.Property(h => h.SalaryStandardId);
            builder.Property(h => h.SalaryStandardName);
            builder.Property(h => h.SalarySum);
            builder.Property(h => h.DemandSalaraySum);
            builder.Property(h => h.PaidSalarySum);
            builder.Property(h => h.MajorChangeAmount);
            builder.Property(h => h.BonusAmount);
            builder.Property(h => h.TrainingAmount);
            builder.Property(h => h.FileChangAmount);
            builder.Property(h => h.HumanHistroyRecords);
            builder.Property(h => h.HumanFamilyMembership);
            builder.Property(h => h.HumanPicture);
            builder.Property(h => h.AttachmentName);
            builder.Property(h => h.CheckStatus);
            builder.Property(h => h.Register);
            builder.Property(h => h.Checker);
            builder.Property(h => h.Changer);
            builder.Property(h => h.RegistTime);
            builder.Property(h => h.CheckTime);
            builder.Property(h => h.ChangeTime);
            builder.Property(h => h.LastlyChangeTime);
            builder.Property(h => h.DeleteTime);
            builder.Property(h => h.RecoveryTime);
            builder.Property(h => h.HumanFileStatus);
        }
    }
}
